package Lesson17.Car;

public class Bus extends Car
{
	protected int numberOfSeats;
	protected double placeForLuggage;
	private int freePlaces = this.numberOfSeats;
	
	Bus()
	{
		super(160);
	}
	
	protected void loadPassangers (int numberOfPassangers)
	{
		if (numberOfPassangers <= this.freePlaces)
			freePlaces-=numberOfPassangers;
	}
}
